﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Micro.Core.ApiConsumer.ActionAttributes
{
    /// <summary>
    /// ApiAction特性基类
    /// </summary>
    [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
    public abstract class ApiActionAttribute:Attribute,IApiActionAttribute
    {
        /// <summary>
        /// 特性优先级排序，越小优先级最高，保证接口所需参数按正确的顺序组装
        /// </summary>
        public virtual int OrderIndex { get; }

        public abstract void Compose(HttpRequest request);
    }
}
